import {API} from './config';
import CustomRequest from '@/utils/Request';

/* 
*  借阅趋势
*/
const flowBorrowTrend = async (params = {}) => {
  return CustomRequest({
    api: API.flowBorrowTrend,
    method: 'post',
    params
  })
}

/* 
* 借阅趋势导出
*/
const flowBorrowTrendExport = async (params = {}) => {
  return CustomRequest({
    api: API.flowBorrowTrendExport,
    method: 'post',
    params
  })
}

/* 
*  流通率统计分页
*/
const flowCirculationPageList = async (params = {}) => {
  return CustomRequest({
    api: API.flowCirculationPage,
    method: 'post',
    params
  })
}

/* 
*  流通率统计导出
*/
const flowCirculationExport = async (params = {}) => {
  return CustomRequest({
    api: API.flowCirculationExport,
    method: 'post',
    params
  })
}

/* 
*  到管率统计分页
*/
const flowAttendPageList = async (params = {}) => {
  return CustomRequest({
    api: API.flowAttendPage,
    method: 'post',
    params
  })
}

/* 
*  流通率统计导出
*/
const flowAttendExport = async (params = {}) => {
  return CustomRequest({
    api: API.flowAttendExport,
    method: 'post',
    params
  })
}

/* 
*  读者借阅率统计分页
*/
const flowBorrowPageList = async (params = {}) => {
  return CustomRequest({
    api: API.flowBorrowPage,
    method: 'post',
    params
  })
}

/* 
*  读者借阅率导出
*/
const flowBorrowExport = async (params = {}) => {
  return CustomRequest({
    api: API.flowBorrowExport,
    method: 'post',
    params
  })
}

/* 
*  图书利用率统计分页
*/
const flowUtilizationPageList = async (params = {}) => {
  return CustomRequest({
    api: API.flowUtilizationPage,
    method: 'post',
    params
  })
}

/* 
*  图书利用率导出
*/
const flowUtilizationExport = async (params = {}) => {
  return CustomRequest({
    api: API.flowUtilizationExport,
    method: 'post',
    params
  })
}

export {
  flowBorrowTrend,
  flowBorrowTrendExport,

  flowCirculationPageList,
  flowCirculationExport,

  flowAttendPageList,
  flowAttendExport,

  flowBorrowPageList,
  flowBorrowExport,

  flowUtilizationPageList,
  flowUtilizationExport
}